import api from './api'

export const fetchUsers = async () => {
  const response = await api.get('/users')
  return response.data.data
}

export const createUser = async (user: any) => {
  const response = await api.post('/users', user)
  return response.data.data
}